# -*- coding: utf-8 -*-
# @Time: 2022/4/29 13:44
# @Author: 发抖的小喵喵
# @Email: panyi_20210601@163.com
# @File: 注册会员.py
# @Project: haixin
# @Software: PyCharm


from test_case.haixin.Method.Post import post_method


def register():
    """
    收银台查询客户不是会员，经过客户同意时调用我们平台给用户注册会员
    :return:
    {
    "code": 0,
    "msg":"成功",
    "data": {
      "uerId"：1
      }
    }

    """
    url = "https://api-sit.shwoody.com/ma/chiobeansOrder/register"

    data = {
        "shopId": "2024",  # shop_number
        "userMobile": "18975068557",
        # "registerSmsCode": "176675"     # v1不需要这个字段
    }

    response = post_method(data, url)
    # print(response.headers)
    print(response)


if __name__ == "__main__":
    register()
